
consumer:consumer.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -g -o $@ $^ -std=c++17 -I../third/include -L../third/lib -lsqlite3 -lgtest -lprotobuf  -lmuduo_base -lmuduo_net -lz
.PHONY:publish
publish:
publish:publish.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../third/include/muduo/proto/codec.cc
	g++ -g -o $@ $^ -std=c++17 -I../third/include -L../third/lib -lsqlite3 -lgtest -lprotobuf  -lmuduo_base -lmuduo_net -lz

.PHONY:clean
clean:
	rm -f consumer
